package ocean.chinacraft.common;

import net.minecraft.world.item.CreativeModeTabs;
import net.minecraftforge.event.BuildCreativeModeTabContentsEvent;
import net.minecraftforge.eventbus.api.IEventBus;
import ocean.chinacraft.common.world.item.classify.ModItemArmor;

/**
 * 物品加载
 *
 * @author zhang
 * @since 2021/11/3
 */
public class ModItems {

    public static void register(IEventBus bus) {
        ModItemArmor.register(bus);
    }

    public static void addCreativeModTab(BuildCreativeModeTabContentsEvent event) {
        if (event.getTabKey() == CreativeModeTabs.COMBAT) {
            event.acceptAll(ModItemArmor.buildToolTab());
        }
    }
}